package com.hs.mod_archive.view

import android.app.Dialog
import android.content.Context
import android.content.DialogInterface
import android.view.MotionEvent

class MyDialog : Dialog {
    constructor(context: Context) : super(context)

    constructor(context: Context, themeResId: Int) : super(context, themeResId)

    protected constructor(
        context: Context,
        cancelable: Boolean,
        cancelListener: DialogInterface.OnCancelListener?
    ) : super(context, cancelable, cancelListener)

    /**
     * 计时，重写dispatchTouchEvent
     */
    override fun dispatchTouchEvent(ev: MotionEvent): Boolean {
        when (ev.action) {
            MotionEvent.ACTION_UP -> {}
        }
        return super.dispatchTouchEvent(ev)
    }
}